package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.PartTask.PartRequest;
import com.smiier.skin.net.PartTask.PartResponse;
import com.smiier.skin.util.GlobalSettings;

@SuppressWarnings("serial")
public class PartTask extends NetTask<PartRequest, PartResponse> {
	public static class PartRequest extends ORequest {
		public String appname = Constant.APP_NAME;
	}

	public static class PartResponse extends ArrayList<PartItem> implements
			INoProguard {

	}

	public static class PartItem implements INoProguard {
		public String Key;
		public ArrayList<String> Value;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_FIXED_JOIN
				+ "Part.txt";
		mRequestMethod = METHOD_GET;
	}
}
